<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        
        
        
      <?php require '../../../class/DB/user.php';?>
      <?php $user = new user(); ?>
       <?php echo '<table cellspacing="0" cellpadding="0">'; ?>
        <?php echo '<thead><tr>';  ?>
<?php	echo '<th> Id </th>';  ?>
<?php	echo '<th> login </th>';  ?>
<?php	echo '<th> e-mail </th>';  ?>
<?php        echo '</tr> </thead>';  ?>
 <?php       echo '<tbody>';  ?>
       
 <?php      foreach($user->query("SELECT * FROM reg") as $raw) ?>
 <?php      { ; ?>
         
 <?php      echo "<tr>"; ?>
       
 <?php 
           
            echo "<td>";
            echo $raw['id'];
            echo "</td><td>";
            echo $raw['login'];
            echo "</td>"; 
            echo  "<td>";
            echo $raw['email']; 
            echo "</td>"; 
               echo  "<td>";
            echo "<button>more</button>"; 
            echo "</td>"; 
            
         
          
          echo "</tr>";  
     }
      
        
          echo "</tbody>";
          echo "</table>";
        
        ?>
        
        <button onclick="showadduser()">Добавить пользователя</button>
    </body>
</html>
